<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link href="{SKIN_PATH}modal.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>

<script type="text/javascript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    
    <div class="main">
		
		<div class="mod">
			<div class="head"></div>
            <div class="body">
            
            <div class="well">
            	{php $query = $db->query("select userid from table_member where gender = 0")}
                    <h3>发现{php echo $db->num_rows($query)}位帅哥</h3>
                <a href="{url("?module=$module&action=$action")}" class="button"><i class="icon-refresh"></i>换一组</a>
            </div>
                
            <div class="users">
                {php unset($r);}
                 {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid='10' AND disabled=0 AND gender = 0 ORDER BY rand() DESC, lastlogintime desc "}
                 {get sql="$sql" rows="45" page="$page"}
                <li {if $n%9==1} class="clear" {/if}>
                 <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48"/></a>
                 <br/><a href="{url("?module=space&userid=$r[userid]")}">{nickname($r[userid])}</a>
                
                 <br/>({php echo $r[areaid] ? areaname($r[areaid]) : $AREA[rand(1,count($AREA))][name]})
               
                 <p>&nbsp;</p>
                </li>
              {/get}
           </div>   
              
          </div>
		</div> 
        
        
        
			
		 <div class="pagination">{$pages}</div>
		 
	</div>
    
    <div class="aside">
    	
        <div class="mod">
            <div class="head"></div>
            <div class="body">
                
              
            </div>
        </div> 
    </div>
</div>

 
{template 'footer.html'}
